public class Solution {
    public int Add(int num1,int num2) {
        while(num2 != 0){
            int a = num1 ^ num2;//不考虑进位的加
            int b = (num1 & num2) << 1;//进位值
            num1 = a;
            num2 = b;
        }
        return num1;
    }
}

